const AdminHome = () => import("../../pages/admin/home/Home");//admin主页面

const AddAgency = () => import("../../pages/admin/addAgency/AddAgency");//添加机构

const AddUser = () => import("../../pages/admin/addUser/AddUser");//添加用户

const ViewUser = () => import("../../pages/admin/viewUser/ViewUser");

const View = () => import("../../pages/admin/viewUser/view/ViewGroup");

const AccountInfo = ()=> import("../../pages/admin/accountManage/accountInfo/AccountInfo");
const ModifyPassword = ()=> import("../../pages/admin/accountManage/modifyPassword/ModifyPassWord");
//基地管理
const BaseManage = () => import("../../pages/admin/baseManage/BaseManage")
const adminRoute = [
    {
        path: "/admin",
        component: AdminHome,
        children: [
            {
                path: "",
                redirect: "addAgency"
            },
            {
                path: "addAgency",
                component: AddAgency
            }, {
                path: "addUser",
                component: AddUser
            },
            {
                path: "viewUser",
                component: ViewUser,
            },
            {
                path:'view',
                component:View
            },
            {
                path: "accountInfo",
                component: AccountInfo
            },
            {
                path: "modifyPassword",
                component: ModifyPassword
            },
            {
                path:"BaseManage",
                component:BaseManage
            }
        ]
    }
];

export default adminRoute;
